<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmMultiPageButtonBox.cpp -->
  <meta name="description" content="分页按钮组合.">
  <title>QCtmMultiPageButtonBox Class | QCustomUi 1.16.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html" translate="no">QCustomUi 1.16.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmMultiPageButtonBox</li>
<li id="buildversion">QCustomUi 1.16.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmMultiPageButtonBox Class</h1>
<!-- $$$QCtmMultiPageButtonBox-brief -->
<p>分页按钮组合. <a href="#details">More...</a></p>
<!-- @@@QCtmMultiPageButtonBox -->
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmMultiPageButtonBox.h&gt;</span></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> QWidget</td></tr>
</table></div>
<ul>
<li><a href="qctmmultipagebuttonbox-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagebuttonbox.html#QCtmMultiPageButtonBox" translate="no">QCtmMultiPageButtonBox</a></b>(QWidget *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagebuttonbox.html#dtor.QCtmMultiPageButtonBox" translate="no">~QCtmMultiPageButtonBox</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCtmAbstractMultiPageItemModel *</td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagebuttonbox.html#model" translate="no">model</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPushButton *</td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagebuttonbox.html#nextButton" translate="no">nextButton</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagebuttonbox.html#pageButtonCount" translate="no">pageButtonCount</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPushButton *</td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagebuttonbox.html#prevButton" translate="no">prevButton</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagebuttonbox.html#setModel" translate="no">setModel</a></b>(QCtmAbstractMultiPageItemModel *<i>model</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmmultipagebuttonbox.html#setPageButtonCount" translate="no">setPageButtonCount</a></b>(int <i>buttonCount</i>)</td></tr>
</table></div>
<!-- $$$QCtmMultiPageButtonBox-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmMultiPageButtonBox -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmMultiPageButtonBox[overload1]$$$QCtmMultiPageButtonBoxQWidget* -->
<h3 class="fn" translate="no" id="QCtmMultiPageButtonBox"><code class="details extra" translate="no">[explicit]</code> QCtmMultiPageButtonBox::<span class="name">QCtmMultiPageButtonBox</span>(<span class="type">QWidget</span> *<i>parent</i> = nullptr)</h3>
<p>构造函数 <i translate="no">parent</i>.</p>
<!-- @@@QCtmMultiPageButtonBox -->
<!-- $$$~QCtmMultiPageButtonBox[overload1]$$$~QCtmMultiPageButtonBox -->
<h3 class="fn" translate="no" id="dtor.QCtmMultiPageButtonBox"><code class="details extra" translate="no">[virtual noexcept]</code> QCtmMultiPageButtonBox::<span class="name">~QCtmMultiPageButtonBox</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmMultiPageButtonBox -->
<!-- $$$model[overload1]$$$model -->
<h3 class="fn" translate="no" id="model"><span class="type"><a href="qctmabstractmultipageitemmodel.html" translate="no">QCtmAbstractMultiPageItemModel</a></span> *QCtmMultiPageButtonBox::<span class="name">model</span>() const</h3>
<p>返回数据源.</p>
<p><b>See also </b><a href="qctmmultipagebuttonbox.html#setModel" translate="no">setModel</a>.</p>
<!-- @@@model -->
<!-- $$$nextButton[overload1]$$$nextButton -->
<h3 class="fn" translate="no" id="nextButton"><span class="type"><a href="https://doc.qt.io/qt/qpushbutton.html" translate="no">QPushButton</a></span> *QCtmMultiPageButtonBox::<span class="name">nextButton</span>() const</h3>
<p>返回下一页按钮的地址.</p>
<p><b>See also </b><a href="qctmmultipagebuttonbox.html#prevButton" translate="no">prevButton</a>.</p>
<!-- @@@nextButton -->
<!-- $$$pageButtonCount[overload1]$$$pageButtonCount -->
<h3 class="fn" translate="no" id="pageButtonCount"><span class="type">int</span> QCtmMultiPageButtonBox::<span class="name">pageButtonCount</span>() const</h3>
<p>返回页面按钮的设置数量.</p>
<p><b>See also </b><a href="qctmmultipagebuttonbox.html#setPageButtonCount" translate="no">setPageButtonCount</a>.</p>
<!-- @@@pageButtonCount -->
<!-- $$$prevButton[overload1]$$$prevButton -->
<h3 class="fn" translate="no" id="prevButton"><span class="type"><a href="https://doc.qt.io/qt/qpushbutton.html" translate="no">QPushButton</a></span> *QCtmMultiPageButtonBox::<span class="name">prevButton</span>() const</h3>
<p>返回上一页按钮的地址.</p>
<p><b>See also </b><a href="qctmmultipagebuttonbox.html#nextButton" translate="no">nextButton</a>.</p>
<!-- @@@prevButton -->
<!-- $$$setModel[overload1]$$$setModelQCtmAbstractMultiPageItemModel* -->
<h3 class="fn" translate="no" id="setModel"><code class="details extra" translate="no">[virtual]</code> <span class="type">void</span> QCtmMultiPageButtonBox::<span class="name">setModel</span>(<span class="type"><a href="qctmabstractmultipageitemmodel.html" translate="no">QCtmAbstractMultiPageItemModel</a></span> *<i>model</i>)</h3>
<p>设置数据来源 <i translate="no">model</i>.</p>
<p><b>See also </b><a href="qctmmultipagebuttonbox.html#model" translate="no">model</a>.</p>
<!-- @@@setModel -->
<!-- $$$setPageButtonCount[overload1]$$$setPageButtonCountint -->
<h3 class="fn" translate="no" id="setPageButtonCount"><span class="type">void</span> QCtmMultiPageButtonBox::<span class="name">setPageButtonCount</span>(<span class="type">int</span> <i>buttonCount</i>)</h3>
<p>设置页面按钮数量 <i translate="no">buttonCount</i>, 如果实际页面数量少于/设置的数量，则显示的页面按钮数量为实际数量， 如果实际页面的数量多于页面按钮数量，则显示页面按钮的数量为设置的数量，将页面按钮数量设为0时，不显示页面按钮.</p>
<p><b>See also </b><a href="qctmmultipagebuttonbox.html#pageButtonCount" translate="no">pageButtonCount</a>.</p>
<!-- @@@setPageButtonCount -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
